//
//  HCMoreViewController.m
//  HelloCall
//
//  Created by WangYongpeng on 13-9-21.
//  Copyright (c) 2013年 HC. All rights reserved.
//

#import "HCMoreViewController.h"

@interface HCMoreViewController ()

@property (nonatomic, retain) UINavigationController* navigationController;

@end

@implementation HCMoreViewController

@synthesize navigationController = m_navigationController;

- (id)init
{
    self = [super init];
    if (nil != self)
    {
        self.view.backgroundColor = [UIColor whiteColor];
        self.navigationController = [[UINavigationController alloc] initWithRootViewController:self];
        [self.view addSubview:self.navigationController.view];
        self.title = @"更多";
        
        CGRect rect = CGRectMake(30, 70, 260, 40);
        UIButton* verButton = [[[UIButton alloc] initWithFrame:rect] autorelease];
        verButton.backgroundColor = [UIColor grayColor];
        [verButton setTitle:@"软件版本" forState:UIControlStateNormal];
        [verButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [verButton addTarget:self action:@selector(showVer) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:verButton];
        
        rect.origin.y += (rect.size.height + 20);
        UIButton* aboutButton = [[[UIButton alloc] initWithFrame:rect] autorelease];
        aboutButton.backgroundColor = [UIColor grayColor];
        [aboutButton setTitle:@"关于" forState:UIControlStateNormal];
        [aboutButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [aboutButton addTarget:self action:@selector(showAbout) forControlEvents:UIControlEventTouchUpInside];
        [self.view addSubview:aboutButton];
    }
    
    return self;
}

- (void)dealloc
{
    self.navigationController = nil;
    
    [super dealloc];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)showVer
{

}

- (void)showAbout
{}

@end
